package stujdbc;

import java.rmi.*;
import java.rmi.server.*;

public class StudentImpl extends UnicastRemoteObject implements Student {
	private String name = "";
	private int id = 0;
    private String graduate = "";
    private String department = "";
    private String email = "";
    private String phone = "";
	
	public StudentImpl() throws RemoteException {
	}
	
    @Override
 	public void setId(int id) throws RemoteException {
 		this.id = id;
 	}
 	
    @Override
	public int getId() throws RemoteException {
		return id;
	}
	
    @Override
	public void setName(String name) throws RemoteException {
		this.name = name;
	}
    @Override
	public String getName() throws RemoteException {
		return name;
	}

    @Override
    public String getDepartment() {
        return department;
    }

    @Override
    public void setDepartment(String department) {
        this.department = department;
    }

    @Override
    public String getEmail() {
        return email;
    }

    @Override
    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String getGraduate() {
        return graduate;
    }

    @Override
    public void setGraduate(String graduate) {
        this.graduate = graduate;
    }

    @Override
    public String getPhone() {
        return phone;
    }

    @Override
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
}
